package com.xmhmyh.generalframework.framework.security;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * @Author: 于丁
 * @DateTime: 2020/7/21 11:44 上午
 */
public class UserPermissionsOrRole implements GrantedAuthority, Serializable {


    private static final long serialVersionUID = -8490780811895680481L;
    private String authority;


    public UserPermissionsOrRole() {
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    @Override
    public String getAuthority() {
        return authority;
    }

    public UserPermissionsOrRole(String authority) {
        this.authority = authority;
    }
}
